Skip to content

Add thread/resume compatibility shim to code app-server#569

Open
cbusillo wants to merge 2 commits intojust-every:mainfrom
cbusillo:compat/thread-resume-shim
Open

Add thread/resume compatibility shim to code app-server#569
cbusillo wants to merge 2 commits intojust-every:mainfrom
cbusillo:compat/thread-resume-shim

Conversation

@cbusillo
Copy link
Copy Markdown

@cbusillo cbusillo commented Apr 3, 2026

Summary

  • add a minimal v2 thread/resume handler to code-rs/app-server
  • resume live conversations from rollout history and return a ThreadResumeResponse
  • alias resumed historical thread ids to the live conversation ids so existing clients can continue to use the original thread id for addConversationListener and sendUserTurn

Why

Codexia expects thread/resume semantics for Codex-compatible backends. code-rs already had the lower-level resumeConversation path, but it did not expose the v2 thread/resume request shape that Codexia can use directly.

This change intentionally adds a compatibility shim rather than porting the full codex-rs thread manager. The goal is to restore native-looking resume/continue behavior for clients like Codexia with the smallest viable app-server change.

Validation

  • cargo check -p code-app-server
  • cargo test -p code-app-server thread_resume_response_thread_uses_catalog_metadata
  • direct JSON-RPC probe against code-app-server confirming thread/resume, addConversationListener, and sendUserTurn all succeed using the historical thread id
  • release build verified through the local code app-server binary on PATH

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eda8e469b7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread code-rs/app-server/src/code_message_processor.rs Outdated
Comment thread code-rs/app-server/src/code_message_processor.rs Outdated
Comment thread code-rs/app-server/src/code_message_processor.rs
@cbusillo
Copy link
Copy Markdown
Author

cbusillo commented Apr 3, 2026

Addressed the Codex review feedback in a41cc7b2e6.

Validation:

  • ./build-fast.sh
  • cargo test -p code-app-server code_message_processor --quiet
  • manual code app-server JSON-RPC check through the PATH-linked /opt/homebrew/bin/code symlink, confirming thread/resume now honors explicit path, returns the rollout thread id, and applies modelProvider overrides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant